using UwinEducation.Application.Dtos;
using UwinEducation.Shared.Models;

namespace UwinEducation.Application.Common.Interfaces
{
    /// <summary>
    /// 学生课表服务接口
    /// </summary>
    public interface IStudentScheduleService
    {
        /// <summary>
        /// 获取学生课表分页列表
        /// </summary>
        Task<PagedResult<StudentScheduleDto>> GetPagedListAsync(StudentSchedulePageRequest pageRequest);

        /// <summary>
        /// 获取学生课表统计分页列表
        /// </summary>
        Task<PagedResult<StudentScheduleStatisticsDto>> GetStatisticsPagedListAsync(StudentScheduleStatisticsPageRequest pageRequest);

        /// <summary>
        /// 获取学生课表详情
        /// </summary>
        Task<StudentScheduleDto> GetByIdAsync(Guid id);

        /// <summary>
        /// 创建学生课表
        /// </summary>
        Task<StudentScheduleDto> CreateAsync(CreateStudentScheduleDto input);

        /// <summary>
        /// 批量创建学生课表
        /// </summary>
        Task<List<StudentScheduleDto>> CreateRangeAsync(CreateStudentScheduleRangeDto inputs);

        /// <summary>
        /// 更新学生课表
        /// </summary>
        Task<StudentScheduleDto> UpdateAsync(UpdateStudentScheduleDto input);

        /// <summary>
        /// 删除学生课表
        /// </summary>
        Task DeleteAsync(Guid id);

        /// <summary>
        /// 根据学生ID和教师课表ID删除学生课表
        /// </summary>
        Task DeleteByStudentIdAndTeacherScheduleIdAsync(Guid studentId, Guid teacherScheduleId);

        /// <summary>
        /// 获取学生的所有课表
        /// </summary>
        Task<List<StudentScheduleDto>> GetByStudentIdAsync(Guid studentId);

        /// <summary>
        /// 获取指定日期范围内的学生课表
        /// </summary>
        Task<List<StudentScheduleDto>> GetByDateRangeAsync(Guid studentId, DateTime startDate, DateTime endDate);

        /// <summary>
        /// 获取教师课表集合
        /// </summary>
        Task<List<TeacherScheduleListDto>> GetTeacherScheduleListAsync(TeacherScheduleListRequest request);

        Task<List<StudentScheduleListDto>> GetStudentScheduleListAsync(StudentScheduleListRequest request);

        Task<List<StudentDto>> GetDistinctStudentsByTeacherScheduleIdAsync(Guid teacherScheduleId);




    }
}